From: Joseph Mory Date: Fri, 5 Jul 2024 09:15:55 +0000 (+0800) Subject: luci-base: Correct how textarea's wrap works X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=d3bf67507f480e248a234dd79e0f981d59a062b7;p=project%2Fluci.git luci-base: Correct how textarea's wrap works Signed-off-by: Joseph Mory --- diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js index 90ff86b75a..0e395cea20 100644 --- a/modules/luci-base/htdocs/luci-static/resources/ui.js +++ b/modules/luci-base/htdocs/luci-static/resources/ui.js @@ -511,7 +511,7 @@ var UITextarea = UIElement.extend(/** @lends LuCI.ui.Textarea.prototype */ { 'style': style, 'cols': this.options.cols, 'rows': this.options.rows, - 'wrap': this.options.wrap ? '' : null + 'wrap': this.options.wrap ? 'soft' : 'off' }, [ value ])); if (this.options.monospace)